import { _decorator, Component, instantiate, Label, Node, Prefab } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('listItem')
export class listItem extends Component {
    @property(Label)
    labName:Label=null;
    @property(Label)
    labID:Label=null;
    initData(data:any){
        this.labID.string=data.id;
        this.labName.string=data.name;

    }
}

